#!/usr/bin/env python
# -*- coding:utf-8 -*-
# Author:Richard_Kong
"""
写代码需要先把一个函数的骨架写出来
组织测试用例并执行测试用例
"""
import time
import unittest
from unittest import TextTestRunner
from BeautifulReport import BeautifulReport as bf

test_suite =unittest.TestLoader().discover('./scripts',"test*.py")
result = bf(test_suite)
result.report(filename="report{}".format(time.strftime('%Y%m%d-%H%M%S')),description='testreport',report_dir='./report')